package com.suke.czx.modules.examstack.exam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.examstack.exam.dao.KnowledgePointDao;
import com.suke.czx.modules.examstack.exam.entity.KnowledgePointEntity;
import com.suke.czx.modules.examstack.exam.service.KnowledgePointService;



@Service("knowledgePointService")
public class KnowledgePointServiceImpl implements KnowledgePointService {
	@Autowired
	private KnowledgePointDao knowledgePointDao;
	
	@Override
	public KnowledgePointEntity queryObject(Integer pointId){
		return knowledgePointDao.queryObject(pointId);
	}
	
	@Override
	public List<KnowledgePointEntity> queryList(Map<String, Object> map){
		return knowledgePointDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return knowledgePointDao.queryTotal(map);
	}
	
	@Override
	public void save(KnowledgePointEntity knowledgePoint){
		knowledgePointDao.save(knowledgePoint);
	}
	
	@Override
	public void update(KnowledgePointEntity knowledgePoint){
		knowledgePointDao.update(knowledgePoint);
	}
	
	@Override
	public void delete(Integer pointId){
		knowledgePointDao.delete(pointId);
	}
	
	@Override
	public void deleteBatch(Integer[] pointIds){
		knowledgePointDao.deleteBatch(pointIds);
	}
	
}
